﻿@model bdxyit.com.RecruitmentAppSys.ViewModels.FamilyInfo

@{
    ViewBag.Title = "家庭成员";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/DatePicker/WdatePicker.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    
    <div id="NavMessage">
        <ul>
            <li >@Html.ActionLink("个人信息", "Index", "EducationInfo", new { @style = "color: Red;" })</li>
            <li>@Html.ActionLink("教育信息", "Index", "EducationInfo")</li>
            <li>@Html.ActionLink("工作履历", "Index", "EducationInfo")</li>
            <li>@Html.ActionLink("应聘岗位", "Index", "EducationInfo")</li>
            <li>@Html.ActionLink("上传照片", "Index", "EducationInfo")</li>
        </ul>
    </div>    
    <div id="BasicMessage">
        <fieldset>
            <legend>家庭成员</legend>
            @Html.HiddenFor(f=>f.UserID)
            <table>
                <tr>
                    <td>
                        <div class="editor-label">
                            姓名：
                        </div>
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(f=>f.FamilyName)
                            @Html.ValidationMessageFor(f => f.FamilyName)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="editor-label">
                            关系：
                        </div>
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.DropDownList("SysID", new SelectList(ViewBag.relationships as System.Collections.IEnumerable, "SysID", "SysItem"))
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="editor-label">
                            工作单位：
                        </div>
                    </td>
                    <td>
                        <div class="editor-field">
                          @Html.EditorFor(f => f.SectorPosts)
                          @Html.ValidationMessageFor(f => f.SectorPosts)
                        </div>
                    </td>
                </tr>
                  <tr>
                    <td>
                        <div class="editor-label">
                            职务：
                        </div>
                    </td>
                    <td>
                        <div class="editor-field">
                          @Html.EditorFor(f => f.Job)
                          @Html.ValidationMessageFor(f => f.Job)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="editor-label">
                            居住地：
                        </div>
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(f => f.Address)
                            @Html.ValidationMessageFor(f => f.Address)
                        </div>
                    </td>
                </tr>
            </table>
            <p>
                <input type="submit" value="保存" />
                @Html.ActionLink("下一步", "Create", "EducationInfo", new { id = Model.UserID }, new { id = "Next" })
                
            </p>
        </fieldset>
    </div>
    }

